#ifndef LINERELATION_H
#define LINERELATION_H

#include <QObject>
#include<QGraphicsLineItem>
#include<QGraphicsTextItem>
#include<QGraphicsProxyWidget>
class lineRelation : public QObject
{
    Q_OBJECT
private:
    QGraphicsLineItem *line;
    QGraphicsTextItem *nametext;
    QGraphicsTextItem *type1text;
    QGraphicsTextItem *type2text;
    QGraphicsProxyWidget *proxy1;
    QGraphicsProxyWidget *proxy2;

public:
    explicit lineRelation(QGraphicsLineItem *line,QGraphicsTextItem *rname,QGraphicsTextItem *rtype1,QGraphicsTextItem *rtype2,QGraphicsProxyWidget *w1,QGraphicsProxyWidget *w2,QObject *parent = nullptr);

signals:

public slots:
    void update();
};

#endif // LINERELATION_H
